import {CharacterTextSplitter} from 'langchain/text_splitter'
import {DocxLoader} from 'langchain/document_loaders/fs/docx'

const splitter = new CharacterTextSplitter({separator: "。",});
const loader = new DocxLoader('C:\\Users\\aqua\\Desktop\\岸端软件详细设计文档.docx');
let docs = await loader.load();
const output = await splitter.splitDocuments(docs)
console.log(output)
